<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>
			<div class="blue-text16" style="margin: 0px 0px 0px 0px">
				<s:text name="lable.myfavoritecategories" />
			</div>
			<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>

			<div class="common-text" style="margin: 0px 0px 10px 0px">
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td>
							<img src="images/top/btn-grey-left.gif" alt=" " width="6"
								height="23" />
						</td>
						<td class="btn-grey-middle ">
							<div style="margin: 0px 5px 6px 5px">
								<a href="addToFavorite.htm" class="btn-grey-link"><s:text
										name="lable.addtofavoritecategories" /> </a>
							</div>
						</td>
						<td>
							<img src="images/top/btn-grey-right.gif" alt=" " width="6"
								height="23" />
						</td>
					</tr>
				</table>
			</div>
			<div style="margin: 0px 0px 12px 0px">
				<s:form action="deleteFavoriteCategories" method="post"
					theme="simple">
					<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tr>
							<td width="100%">
								<display:table name="list" pagesize="10" requestURI="favoriteCategories.htm" id="row">
									<display:column title="#" class="grid-bg common-text" headerClass="grid-header-bg grid-header-text-link">
										<s:checkbox name="selectedCategory" theme="simple" fieldValue="%{#attr.row.id}" />
									</display:column>
									<display:column value="${row.generalCategories.categoryName}" class="grid-bg common-text" headerClass="grid-header-bg grid-header-text-link"
										title="Category:" />
									<display:column title="Added" class="grid-bg common-text" headerClass="grid-header-bg grid-header-text-link">
										<s:date name="%{#attr.row.dateAdded}"
											format="%{#attr.user.dateFormat.format}" />
									</display:column>
									<display:column autolink="true" title="Options" class="grid-bg common-text" headerClass="grid-header-bg grid-header-text-link"
										paramProperty="id" href="addToFavorite.htm"
										paramId="userFavouriteCategory.id">
								Edit
							</display:column >
									<display:column title="Note" class="grid-bg common-text" headerClass="grid-header-bg grid-header-text-link">
										<c:out value="${row.note}"></c:out>
									</display:column>
								</display:table>
							</td>
						</tr>
						<tr>
							<td width="100%">
								<table border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td>
											<img src="images/middle/btn-grey-left1.gif" alt=" " width="6"
												height="23" />
										</td>
										<td class="btn-grey-middle1 ">
											<s:submit name="delete" value="delete" align="left"
												theme="simple" cssClass="submit-btn-common" disabled="true"/>
										</td>
										<td>
											<img src="images/middle/btn-grey-right1.gif" alt=" "
												width="6" height="23" />
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</s:form>
			</div>
		</td>
	</tr>
</table>
